import request from '../utils/query';
import { login as loginApi } from '../utils/api';

export async function queryNotices() {
  return request('/api/notices');
}

export async function accountLogin(params) {
  return request({
    url: loginApi.account,
    method: 'POST',
    cookie: true,
    data: params,
  });
}
